package car4u;

public class FuzzyLogic {
	private Alternative alternative;
	private Coniunction coniunction;
	private Implication implication;
	
	public FuzzyLogic(Coniunction.Type coniunctionType, Alternative.Type alternativeType, 
			Implication.Type implicationType) {
		super();
		this.alternative = new Alternative(alternativeType);
		this.coniunction = new Coniunction(coniunctionType);
		this.implication = new Implication(implicationType);
	}
	
	public double getAlternative(double x, double y){
		return alternative.getAlternative(x, y);
	}
	
	public double getConiunction(double x, double y){
		return coniunction.getConiunction(x, y);
	}
	
	public double getImplication(double x, double y){
		return implication.getImplication(x, y);
	}
	
}
